package Utils;

public class StringBuilderDemo {
    public static void main(String[] args) {
        StringBuilder sb = new StringBuilder();
        sb.append("Hello");
        sb.append(" ");
        sb.append("world");
        System.out.println(sb.toString());
        System.out.println(sb.length());
        System.out.println(sb.replace(5,6,"<->"));
        sb.insert(5, " big");
        System.out.println(sb.toString());
        sb.delete(5, 9);
        System.out.println(sb.toString());
        sb.reverse();
        System.out.println(sb.toString());
    }
}
